<?php foreach(array('config','header') as $f) Chunk::get($f); ?>  
<div id="page" class="index">
    <div class="wrapper">
    <div class="outer">
    <header>
        <div class="header-wrapper">        
            <div id="site-title">
                <h1>
                    <?php echo Html::anchor(MT_SITE_NAME, MT_BASE_URL, array('class'=>'org site-name', 'title'=> MT_SITE_NAME));?>
                </h1>            
                <p class="slogan"><?php echo Site::slogan();?></p>   
            </div>            
        </div>
    </header><!-- #header -->    
    <div id="main">
        <div class="main-wrapper clearfix">  
        <div id="nav-wrapper" class="clearfix">
         <?php mtGetForeachChunk(array('navigation','search')); ?>  
        </div>  
        <?php if(mt_is_home()){ ?>
        <div id="feature-wrapper">
         <?php Chunk::get('feature'); ?>
        </div>
        <?php } ?>
        <?php Action::run(MtEnum::ACT_CONTENT_HEADER, array('page'=> MT_CURRENT_PAGE));?>
        <div id="content" class="clear">
            <div id="pre-content">
                <?php Action::run('theme_pre_content'); ?>
            </div>
            <div id="site-content">
                <article>
                <?php echo Site::content(); ?>
                </article>
            </div>
            <div id="post-content">
                <?php Action::run('theme_post_content'); ?>
            </div>
        </div>
        <?php Chunk::get('sidebar'); ?>
        <div class="clear"></div>
        <?php Chunk::get('bottom-content'); ?>
        </div>
    </div><!-- #main -->    
    <?php Chunk::get('footer'); ?>
    </div><!-- #.outer -->
    </div><!-- #.wrapper -->
</div><!-- #page, main container -->
<?php echo Snippet::get('google-analytics'); ?>
<?php echo PHP_EOL;?>
</body>     
</html>